package struct
{
	public class CityStruct extends StructBase
	{
		public var id:String = "";
		public var type:int = 0;
		public var cityName:String = "";
		public var weather:Number = 0;
		public var fileName:String = "";
		public var childrenList:String;
		
		public var scenicList:Array;
		
		public function CityStruct()
		{
			scenicList = [];
		}
		
		public function initThis():void
		{
			var obj:Object = this._xmlLoaderManager.cityListXml.load(["id","type"],[id,type]);
			
			if(obj){
				this.id = obj.id;
				this.type = obj.type;
				this.cityName = obj.cityName;
				this.weather = obj.weather;
				this.fileName = obj.fileName;
				this.childrenList = obj.childrenList;
			}
		}
		
		public function initWithData(obj:Object):void
		{
			if(obj){
				this.id = obj.id;
				this.type = obj.type;
				this.cityName = obj.cityName;
				this.weather = obj.weather;
				this.fileName = obj.fileName;
				this.childrenList = obj.childrenList;
			}
		}
		
	}
}